package libT 
{
	/**
	 * A handle little class built to run performance tests. You edit the souce, and then call the static test method. Just for personal use of anyone who needs it.
	 * @author truefire]
	 */
	public class Tests 
	{
		
		/**
		 * Not meant to be instantiated. Use the static test function instead
		 * @throws Error Tests are just for testing, not meant to be instantiated. Use the static function.
		 */
		public function Tests():void
		{
			throw new Error("Tests are just for testing, not meant to be instantiated. Use the static function.", 1337);
		}
		 
		/**
		 * Just call this method to run the tests. Comments have been placed on parts of the code you need to edit.
		 * @param	itts The number of itterations to run.
		 */
		public static function test(itts:int):void
		{
			//change the number of itterations on each test
			var itterations:int = itts;
			
			var i:int = 0;
			var t:Number;
			
			t = (new Date()).getTime();
			for (i = itterations; --i; )
			{
				//Put the code for the first test here
			}
			trace ("Test 1 Name:", (new Date()).getTime() - t); //put the name of you test in the quites
			
			t = (new Date()).getTime();
			for (i = itterations; --i; )
			{
				//Test 2
			}
			trace ("Test 2 Name:", (new Date()).getTime() - t); //ditto
			
			//and so on
		}
		
	}

}